package com.sg.business.commons.operation.handler.vault;

import org.eclipse.swt.widgets.Shell;

import com.sg.business.commons.ui.vault.DocumentUIUtils;
import com.sg.business.commons.ui.vault.IVaultControlPart;
import com.sg.business.model.Document;
import com.sg.widgets.MessageUtil;


public class ModifyDocumentVersion extends AbstractDocumentHandler {


	@Override
	protected void run(Document document, IVaultControlPart vaultControlPart,Shell shell) {
		try {
			document.doUpdateVersion();
			DocumentUIUtils.clearSignPDF(document);
			if(vaultControlPart!=null){
				vaultControlPart.update(document);
			}
		} catch (Exception e) {
			MessageUtil.showToast(e);
		}
		
	}


}
